package artid.com.arttogoa.parser;

import java.io.Serializable;
import org.json.JSONObject;
/**
 * 
*    
* 项目名称：ArtworkArtA   
* 类名称   ：DefaultAddressParser   
* 类描述   ：获取默认地址实体类+解析    
* 创建人   ：耿卫斌   
* 创建时间：2016-10-11 下午3:59:12   
*
 */
public class DefaultAddressParser extends AppItem implements Serializable{
	private static final long serialVersionUID = 1L;
	private String address_id;//地址ID
	private String area_id;//省ID
	private String city_id;//城市ID	
	private String address;//地址
	private String areaname;//省名称
	private String cityname;//市名称
	@Override
	public void parse(JSONObject obj) {
		// TODO Auto-generated method stub
		if (null == obj) {
			return;
		}
		address_id = obj.optString("address_id");
		area_id = obj.optString("area_id");
		city_id = obj.optString("city_id");
		address = obj.optString("address");
		areaname = obj.optString("areaname");
		cityname = obj.optString("cityname");
	}
	public String getAddress_id() {
		return address_id;
	}
	public void setAddress_id(String address_id) {
		this.address_id = address_id;
	}
	public String getArea_id() {
		return area_id;
	}
	public void setArea_id(String area_id) {
		this.area_id = area_id;
	}
	public String getCity_id() {
		return city_id;
	}
	public void setCity_id(String city_id) {
		this.city_id = city_id;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getAreaname() {
		return areaname;
	}
	public void setAreaname(String areaname) {
		this.areaname = areaname;
	}
	public String getCityname() {
		return cityname;
	}
	public void setCityname(String cityname) {
		this.cityname = cityname;
	}
	public DefaultAddressParser() {
		super();
	}
	public DefaultAddressParser(String address_id, String area_id,
			String city_id, String address, String areaname, String cityname) {
		super();
		this.address_id = address_id;
		this.area_id = area_id;
		this.city_id = city_id;
		this.address = address;
		this.areaname = areaname;
		this.cityname = cityname;
	}
	@Override
	public String toString() {
		return "DefaultAddressParser [address_id=" + address_id + ", area_id="
				+ area_id + ", city_id=" + city_id + ", address=" + address
				+ ", areaname=" + areaname + ", cityname=" + cityname + "]";
	}
}
